﻿
using LY.Entity;
using LY.Entity.PageSearch;
using LY.Entity.SearchEntity;
using LY.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using LY.Entity;
using LY.DataAccess.Repository;
using LY.Entity.Entities;
namespace LY.Business.ServiceImpl
{
    class ReferralsService : IReferralsService
    {
        private ReferralsRepository _referrals;

        public ReferralsService()
        {
            _referrals = new ReferralsRepository();
        }

        public int InsertReferrals(U_Referrals rlink)
        {
            return (int)_referrals.Insert(rlink);
        }
        //获取邀请注册列表
        public PagedList<Member_EX> GetReferralsLink(int id, PageView view)
        {
            return _referrals.GetReferralsLink(id, view);
        }
    }
}
